﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Product
{
    public partial class ProductPictureBox : UserControl
    {
        public ProductPictureBox()
        {
            InitializeComponent();
        }
        public Image Image
        {
            get
            {
                return this.Picture.Image;
            }
            set
            {
                this.Picture.Image = value;
            }
        }
        public PictureBoxSizeMode SizeMode
        {
            get
            {
                return this.Picture.SizeMode;
            }
            set
            {
                this.Picture.SizeMode = value;
            }
        }

        private void RightTitle_MouseEnter(object sender, EventArgs e)
        {
            this.RightTitle.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            
        }

        private void RightTitle_MouseLeave(object sender, EventArgs e)
        {
            this.RightTitle.BorderStyle = System.Windows.Forms.BorderStyle.None;
        }
    }
}
